﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
    public class CardTypeHandler
    {
        // Handle to the CardType DBAccess class
        CardTypeDBAccess objCardType = null;

        public CardTypeHandler() 
        {
            objCardType = new CardTypeDBAccess();    
        }

        public List<CardType> GetCardTypeList(String CONNECTION_STRING)
        {
            return objCardType.GetCardTypeList(CONNECTION_STRING);
        }

        public CardType GetCardTypeDetails(String CardTypeID, String CONNECTION_STRING)
        {
            return objCardType.GetCardTypeDetails(CardTypeID, CONNECTION_STRING);
        }

        public bool DeleteCardType(int CardTypeID, String CONNECTION_STRING)
        {
            return objCardType.DeleteCardType(CardTypeID, CONNECTION_STRING);
        }

        public bool UpdateCardType(CardType obj, String CONNECTION_STRING)
        {
            return objCardType.UpdateCardType(obj, CONNECTION_STRING);
        }

        public bool AddNewCardType(CardType obj, String CONNECTION_STRING)
        {
            return objCardType.AddNewCardType(obj, CONNECTION_STRING);
        }
    }
}
